// File:	 preferenceswindowview.h
// Author: Giacomo Graziosi (g.graziosi@gmail.com)
//
// Created on October 1, 2007, 10:17 PM
//
//	This file is part of Vigilante.
//
//	Vigilante is free software: you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation, either version 3 of the License, or
//	(at your option) any later version.
//
//	Vigilante is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRANTY; without even the implied warranty of
//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
//	GNU General Public License for more details.
//
//	You should have received a copy of the GNU General Public License
//	along with Vigilante.	If not, see <http://www.gnu.org/licenses/>.

#ifndef _PREFERENCESWINDOWVIEW_H
#define	_PREFERENCESWINDOWVIEW_H

#include "gtkmain.h"

class GtkPrefs {
public:
    GtkPrefs(Glib::RefPtr<Gnome::Glade::Xml> src_ref_xml);
    //virtual ~PreferencesWindowView();
private:
    Glib::RefPtr<Gnome::Glade::Xml>                     ref_xml;
    Gtk::Window						*PreferencesWindow;
    Gtk::TreeView					*TvPlugins;
    Gtk::TreeView					*TvSources;
    
    void	ButSrcAdd_Clicked();
    void        asd();
    
    class McPlugins : public Gtk::TreeModel::ColumnRecord {
    public:
        McPlugins() { add(m_col_id); add(m_col_type); add(m_col_url); }
        Gtk::TreeModelColumn<unsigned int>	m_col_id;
        Gtk::TreeModelColumn<Glib::ustring>	m_col_type;
        Gtk::TreeModelColumn<Glib::ustring>	m_col_url;
    } mcp;
    
    
    class McSources : public Gtk::TreeModel::ColumnRecord {
    public:
        McSources() {
            add(m_col_type); add(m_col_addr); add(m_col_port);
            add(m_col_colnum); add(m_col_rownum);
        }
        Gtk::TreeModelColumn<char>			m_col_type;
        Gtk::TreeModelColumn<Glib::ustring>	m_col_addr;
        Gtk::TreeModelColumn<unsigned int>	m_col_port;
        Gtk::TreeModelColumn<unsigned int>	m_col_colnum;
        Gtk::TreeModelColumn<unsigned int>	m_col_rownum;
    } mcs;
};


#endif	/* _PREFERENCESWINDOWVIEW_H */

